// 访问store

const getters = {
  list: state => state.demo.list,
  getListById: state => (id) => {
    return state.demo.list.find(item => item.id === id)
  }
}
export default getters
